<?php
namespace Home\Model;

class ReplyModel extends \Think\Model
{
    protected $_validate = [
        ['uid', 'require', '登录状态获取失败，请重新登录！', self::MUST_VALIDATE],
        ['pid', 'require', '您回复的帖子不存在！', self::MUST_VALIDATE],
        ['content', 'require', '回复不能为空！', self::MUST_VALIDATE]
    ];

    protected $_auto = [
        ['create_time', 'time', self::MODEL_INSERT, 'function'],
        ['update_time', 'time', self::MODEL_BOTH, 'function']
    ];
}